<template>

  <div class='news'>

    <comLogo />
    <comNav />
    <comTab @iactiveName="iactiveName"/>
      <router-view :key="'news_'+new Date()" ></router-view>
    <Serve class="mt100" />
    <comFoot />
  </div>
</template>
<script>
import comLogo from '@/components/model/logo.vue'
import comNav from '@/components/model/nav.vue'
import comTab from './tabs.vue'
import Serve from '@/components/serve/serve.vue'
import comFoot from '@/components/model/foot.vue'
export default {
  components: {comLogo,comNav,comTab,Serve,comFoot},
  name: "",
  data() {
    return {
        activeName:0
    };
  },
  methods: {
      iactiveName(activeName){
          //alert(activeName)
          this.$router.push({path:'/news/lists',query:{id:activeName}})
      }
  },
  created() {
  }
};
</script>
<style lang="scss" scoped>
.news {
  .mt100{
    margin-top: 100px;
  }
}
</style>